package com.sigmazero13.gameutils;

import com.sigmazero13.gameutils.db.UtilDbHelper;

import android.app.Application;
import android.util.Log;

public class BoardGameUtilsApp extends Application {
	private static String APP_NAME = "Game Picker";
	
	private UtilDbHelper dbHelper;
	
	@Override
	public void onCreate() {
		super.onCreate();
		Log.d(APP_NAME, "GAMEPICKERAPP onCreate");
		refreshDb();
	}
	   
	@Override
	public void onTerminate() {
		Log.d(APP_NAME, "GAMEPICKERAPP onTerminate");      
		super.onTerminate();      
	}
	
	public void refreshDb() {
		dbHelper = new UtilDbHelper(this);
	}
	
	
	public UtilDbHelper getDbHelper() {
		return dbHelper;
	}
}
